<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="recommendedTypeList.heading" />
<c:set var="noToolBar" value="true" scope="request"/>
<content tag="buttons">

</content>

<form class="mainForm" 	name="mainForm" method="post">

	<div class="top clearfix">
		<ul class="tab">
			<li class="curr"><span><fmt:message key="menu.recommendedTypeList"/></span></li>
		</ul>
		<%@include file="/common/pagingOnlyTop.jsp"%>
	</div>
	<div class="data">
		<display:table name="${recommendedTypeList}" cellspacing="0"
			cellpadding="0" uid="recommendedType" class="list_table"
			export="false" requestURI="">

			<display:column style="width: 25%;" property="recommendTitle" url="/sales/recommendedType.html?doAction=edit"
				paramId="recommendedTypeId" paramProperty="recommendedTypeId" sortable="true" headerClass="data-table-title"
				decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="recommendedType.recommendTitle"/>
			<display:column style="width: 15%;" property="typeName" sortable="true"
				headerClass="data-table-title" 
				decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="recommendedType.typeName" />
			<display:column style=""  sortable="true"
				headerClass="data-table-title" 
				decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="recommendedType.ruleCode">
				<fmt:message key="recommendedType.ruleCode${recommendedType.ruleCode}" />
			</display:column>	
			<display:column style="width: 10%;" sortable="true"
				headerClass="data-table-title" 
				decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="recommendedType.position" >
				<c:choose>
					<c:when test="${recommendedType.isApplyToProduct == 1 and recommendedType.isApplyToCategory == 0}">
						<fmt:message key="recommendedType.position.product"/>
					</c:when>
					<c:when test="${recommendedType.isApplyToProduct == 0 and recommendedType.isApplyToCategory == 1}">
						<fmt:message key="recommendedType.position.category"/>
					</c:when>
				</c:choose>
			</display:column>
			<display:column style="width: 10%;" sortable="true"
				headerClass="data-table-title" 
				decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="recommendedType.autoEval" >
				<fmt:message key="recommendedType.autoEval.s${recommendedType.autoEval}"/>
			</display:column>
			<display:column style="width: 10%;" sortable="true"
				headerClass="data-table-title" 
				decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="recommendedType.status" >
				<fmt:message key="recommendedType.status.s${recommendedType.status}"/>
			</display:column>

		</display:table>
		<%@include file="/common/paging.jsp"%>
	</div>
</form>
<script type="text/javascript">
$j(document).ready(function () {
	highlightTableRows("recommendedType");
});
</script>

